﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CIRDiagnoseDevice
{
    public partial class ModSensitivitySet : Form
    {
        public ModSensitivitySet()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            float settingValue;
            float.TryParse(textBox1.Text.ToString(), out settingValue);
            MainForm.ModSensValue = settingValue;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void ModSensitivitySet_Load(object sender, EventArgs e)
        {
            this.textBox1.Text = MainForm.ModSensValue.ToString();
            textBox1.Focus();
        }
    }
}
